package day09API.stream;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

/**
 * @author DBX
 * @effect 缓冲字符流
 *          java.io.BufferedWriter和BufferedReader
 *          缓冲字符流内部也有一个数组用于块读写文本数据来提高读写效率
 *
 *          java.io.PrintWriter具有自动行刷新的缓冲字符输出流并且可以按行写出字符串，其内部总是连接这BufferedWriter作为缓冲加速
 * @date 2021/8/27 0027 - 14:30
 */
public class PWDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintWriter pw = new PrintWriter("File/pw.txt");
        pw.println("hello world");
        pw.println("hello");
        pw.close();
    }
}
